﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MySystemMag.Models
{
    /// <summary>
    /// 部门管理
    /// </summary>
    public class Office
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }
        /// <summary>
        /// 部门编号
        /// </summary>
        [StringLength(45)]
        public string OfficeID { get; set; }
        /// <summary>
        /// 父编号
        /// </summary>
        [StringLength(45)]
        public string ParentID { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        [StringLength(200)]
        public string OfficeName { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(45)]
        public string FZName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(200)]
        public string BZ { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [StringLength(45)]
        public string Status { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(45)]
        public string CreateName { get; set; }
        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? EditeDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [StringLength(45)]
        public string EditName { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        public virtual List<User> User { get; set; }
    }
}
